<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/system/BW_Core_System_Log.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/system/system/BW_Core_System_Log.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'Id',
                footer: "Foots",
                cnName: '系统日志',
                name: 'system/BW_Core_System_Log',
                url: "/BW_Core_System_Log/",
                sortName: " Id"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"UserIP":""});
            const searchFormOptions = ref([[{"title":"用户ip","field":"UserIP"}]]);
            const columns = ref([{field:'Id',title:'Id',type:'int',width:80,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BeginDate',title:'开始时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'BrowserType',title:'浏览器类型',type:'string',width:220,align:'left'},
                       {field:'ElapsedTime',title:'耗时(ms)',type:'int',width:80,align:'left'},
                       {field:'EndDate',title:'结束时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'ExceptionInfo',title:'异常信息',type:'string',width:110,align:'left'},
                       {field:'LogType',title:'日志类型',type:'string',width:120,align:'left'},
                       {field:'RequestParameter',title:'请求参数',type:'string',width:110,align:'left'},
                       {field:'ResponseParameter',title:'响应参数',type:'string',width:110,align:'left'},
                       {field:'Role_Id',title:'角色',type:'int',width:80,align:'left'},
                       {field:'ServiceIP',title:'服务器ip',type:'string',width:110,align:'left'},
                       {field:'Success',title:'Success',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Url',title:'请求地址',type:'string',width:220,align:'left'},
                       {field:'UserIP',title:'用户ip',type:'string',width:110,align:'left'},
                       {field:'UserName',title:'用户名',type:'string',width:220,align:'left'},
                       {field:'User_Id',title:'用户id',type:'int',width:80,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
